#ifndef REGISTER_H
#define REGISTER_H
#include "../global.h"

#include <QDialog>

namespace Ui {
class Register;
}

class Account;
class Connector;

class Register : public QDialog {
    Q_OBJECT

  public:
    explicit Register(QWidget *parent,Connector *connector,Account *account);
    ~Register();
  public slots:
    void abort();
    void login();
    void enroll();

  private:
    Ui::Register *ui;
  public:
    State state;
    Account *account;
    Connector *connector;
};

#endif // REGISTER_H
